<template>
  <div>
    <el-badge
      v-for="num in total"
      :key="num"
      :value="num < 10 ? '0' + num : num"
      class="item"
      :type="num==current?'success':'info'"
    >
    </el-badge>
  </div>
</template>

<script>
export default {
  data() {
    return {
      total: 20,
      current:1
    };
  },
};
</script>

<style scoped>
</style>